package com.atguigu07.object.equals.exer1;

/**
 * ClassName: OrderTest
 * Package: com.atguigu07.object.equals.exer1
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/22 17:12
 * @Version 1.0
 */
public class OrderTest {
    public static void main(String[] args) {
        Order order1 = new Order(1001, "法师");
        Order order2 = new Order(1001, "法师");
        System.out.println(order1.equals(order2));

        Order order3 = new Order(1001, "法师煞笔");
        Order order4 = new Order(1001, "法师煞笔");
        System.out.println(order3.equals(order4));
    }
}
